#ifndef SETPASSWORDWID_H
#define SETPASSWORDWID_H

#include <QWidget>
#include "./socket/sockclient.h"
namespace Ui {
class SetPasswordWid;
}

class SetPasswordWid : public QWidget
{
    Q_OBJECT
public:
    enum wid_status{
        CreateHome,JoinHome
    };
public:
    explicit SetPasswordWid(QWidget *parent = 0);
    ~SetPasswordWid();
     void setSocket(shared_ptr<SockClient> a_socket);
     void setStatus(wid_status statu);
     void initHomeInfo(QString name);

private slots:
    void on_ok_pushButt_clicked();

private:
    Ui::SetPasswordWid *ui;
    shared_ptr<SockClient> m_cli;
    wid_status m_status;

    QString    m_home_name;
};

#endif // SETPASSWORDWID_H
